package com.huazheng.common.result;

import lombok.Data;
import lombok.Getter;

/**
 * Created by zhanghuazheng on 2020/5/25 15:07
 */

@Getter
public enum  ResultCodeEnum {
    SUCCESS(true,000000,"交易成功"),
    FAIL(false,999999,"交易失败"),
    PARRAM_ERROR(false,100000,"参数错误"),
    ;

    private boolean success;
    private Integer code;
    private String msg;

    ResultCodeEnum(boolean success,Integer code,String msg){
        this.success = success;
        this.code = code;
        this.msg = msg;
    }
}
